/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.model;

import java.util.TimerTask;

/**
 *
 * @author Roosz.OchyE
 */
public class Tugas extends TimerTask {

    private String name;

    public Tugas(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(i + " " + name);
        }
    }
}
